import time
import multiprocessing


def sing(name, num):
    for i in range(num):
        print(name, '在唱歌')
        time.sleep(0.5)


def dance(name, num):
    for i in range(num):
        print(name, '在跳舞')
        time.sleep(0.5)


if __name__ == '__main__':
    multi_sing = multiprocessing.Process(target=sing, args=('Lilith', 3))
    multi_dance = multiprocessing.Process(target=dance, kwargs={'name': 'Krul', 'num': 2})
    multi_sing.start()
    multi_dance.start()
